import Home from './views/Home.vue'

Vue.use(VueRouter);

export default new VueRouter({
    mode: 'hash',
    base: process.env.BASE_URL,
    // base: __dirname,
    routes: [
        {
          path:'/',
            redirect: '/rent'
        },
        {
            path: '/home',
            name: 'home',
            component: Home
        },
        {
            path: '/about',
            name: 'about',
            component: () => import( './views/About.vue')
        },
        {
            path: '/friends',
            name: 'friends',
            component: () => import( './views/friends.vue')
        },
        {
            path:'/AppDownload',
            name:'AppDownload',
            component: () => import("./views/AppDownload.vue")
        },
        {
          path:'/rent',
            name:'rent',
            component: () => import("./views/rent.vue")
        },
        {
          path:'/houseMap',
            name:'houseMap',
            component: () => import("./views/houseMap.vue")
        },
        {
          path:'/owner',
            name:'owner',
            component: () => import("./views/owner.vue")
        },
        {
            path:'/personal-centre',
            name:'personal-centre',
            component: () => import("./views/personal-centre.vue")
        },
        {
            path:'/id-recognition',
            name:'id-recognition',
            component: () => import("./views/id-recognition")
        }
    ]
})
